﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    /// <summary>
    /// 大屏显示柱状图
    /// </summary>
    public class ScreenDisplayBarChartDTO
    {

        /// <summary>
        /// X轴刻度
        /// </summary>
        public List<string> categories { get; set; } = new List<string> { "一", "二", "三", "四", "五", "六", "七" };
        /// <summary>
        /// 数据项
        /// </summary>
        public List<BarChartDataDTO> series { get; set; } = new List<BarChartDataDTO> { new BarChartDataDTO() };
        /// <summary>
        /// Y轴柱体名称
        /// </summary>
        public string name
        {
            set
            {
                this.series[0].name = value;
            }
        }
    }
    /// <summary>
    /// 大屏显示数据项
    /// </summary>
    public class BarChartDataDTO
    {
        public string name { get; set; } = "数量";
        public List<double> data { get; set; } = new List<double>();
    }
}
